<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/tags.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE HTML>
<htmL>
<head>
    <title>记录2</title>
    <script type="text/javascript"></script>
    <style type="text/css">
     table.imagetable {
        font-family: verdana,arial,sans-serif;
        font-size:11px;
        color:#333333;
        border-width: 1px;
        border-color: #999999;
        border-collapse: collapse;
        width: 100%;
    }
    table.imagetable th {
        background:#b5cfd2;
        border-width: 1px;
        padding: 8px;
        border-style: solid;
        border-color: #999999;
        font-size: medium;
    }
    table.imagetable td {
        text-align:center;
        background:#FEFEFE;
        border-width: 1px;
        padding: 8px;
        border-style: solid;
        border-color: #BfD6E1;;
        font-size: medium;
    }
    
    .top_query{
    
      font: 14px 'Microsoft YaHei', '微软雅黑';
      font-weight: bold;
      margin-bottom:10px;
    }
</style>
</head>
<body>

  <div class="top_query" >
    <form action="/queryRecord.htm" method="post">
       <label for="startTime" >起始时间：</label> <input id="startTime" type="date" name="startTime">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       <label for="endTime" >终止时间：</label> <input id="endTime" type="date" name="endTime">
       <input type="submit" value="提交" />
  
    </form>
  </div>
    <table class="imagetable">

        <tr>
            <th>时间</th>
            <th>设备ID</th>
            <th>整体状态</th>
            <th>专网-0</th>
            <th>专网-1</th>
            <th>VPN</th>
            <th>VPN设备</th>
        </tr>

        <c:forEach items="${records}" var="ds" varStatus="vs" >

            <tr>
                <td><fmt:formatDate value="${ds.time}" type="both"/> </td>
                <td>${ds.devId}</td>
               
                <td>
                 
                   <c:if test="${ds.toPnServerState ==0 && ds.toPnLocalState ==0 && ds.toVpnServerState ==0 && ds.toVpnLocalState ==0 }">
                                                                                        正常
                   </c:if>
                   <c:if test="${ds.toPnServerState !=0 || ds.toPnLocalState !=0 || ds.toVpnServerState !=0 || ds.toVpnLocalState !=0 }">
                           !!!                                                           
                   </c:if>
                   
                </td>
            
                    <td>
                        <c:if test="${ds.toPnServerState ==0 }">正常</c:if>
                        <c:if test="${ds.toPnServerState ==1 }">恢复连接</c:if>
                        <c:if test="${ds.toPnServerState ==2 }"> <font color="red">连接异常</font>
                        </c:if>
                        <c:if test="${ds.toPnServerState ==4 }">不检测</c:if>
                    </td>

                    <td>
                        <c:if test="${ds.toPnLocalState ==0 }">正常</c:if>
                        <c:if test="${ds.toPnLocalState ==1 }">恢复连接</c:if>
                        <c:if test="${ds.toPnLocalState ==2 }">
                            <font color="red">连接异常</font>
                        </c:if>
                        <c:if test="${ds.toPnLocalState ==4 }">不检测</c:if>
                    </td>

                    <td>
                        <c:if test="${ds.toVpnServerState ==0 }">正常</c:if>
                        <c:if test="${ds.toVpnServerState ==1 }">恢复连接</c:if>
                        <c:if test="${ds.toVpnServerState ==2 }">
                            <font color="red">连接异常</font>
                        </c:if>
                        <c:if test="${ds.toVpnServerState ==4 }">不检测</c:if>
                    </td>

                    <td>
                        <c:if test="${ds.toVpnLocalState ==0 }">正常</c:if>
                        <c:if test="${ds.toVpnLocalState ==1 }">恢复连接</c:if>
                        <c:if test="${ds.toVpnLocalState ==2 }">
                            <font color="red">连接异常</font>
                        </c:if>
                        <c:if test="${ds.toVpnLocalState ==4 }">不检测</c:if>
                    </td>
                    
            </tr>
        </c:forEach>

    </table>
    <div class="pageArea_div">
         <%@ include file="/WEB-INF/common/paginator.jsp"%>
    </div>  
</body>
</htmL>